#pragma once

#include "../IFilter.h"
#include "../../ImageCores/xImage.h"

// Grayscale command target

class CGrayscale : public IImageFilter
{
public:
	CGrayscale(float cr, float cg, float cb);
	virtual ~CGrayscale();

	virtual BOOL Apply(CxImage& srcImage, CxImage& destImage);
	virtual BOOL Apply(CxImage& srcImage);

private:
	// RGB coefficients for grayscale transformation
	float m_cr;
	float m_cg;
	float m_cb;
};